package org.crh.common.response.impl;

import lombok.Data;
import org.crh.common.response.ResponseData;

/**
 * @author Cyuan
 * @version 1.0
 * @since 2024/06/03
 */
@Data
public class SimpleResponse implements ResponseData {
    private int status = 200;
    private String title = "ok";
    private Object payload = null;

    public SimpleResponse() {
    }

    public SimpleResponse(int status) {
        this.status = status;
    }

    public SimpleResponse(int status, String title) {
        this.status = status;
        this.title = title;
    }

    public SimpleResponse(int status, String title, Object payload) {
        this.status = status;
        this.title = title;
        this.payload = payload;
    }
}
